﻿<%@ Page Language="VB" MasterPageFile="~/admin/admin.master" EnableTheming="true" Theme="admin" AutoEventWireup="false"
    CodeFile="benutzer.aspx.vb" Inherits="benutzer" Title="Benutzer" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--
    ' Version:      18.06.2007 /BJ  Multiview
    '               26.05.2007 /BJ  Button von ...Löschen auf ...Delete umbenannt
    -->

    <!-- Nav tabs -->
    <ul class="nav nav-tabs">
        <li class="active"><a href="#adduser" data-toggle="tab">
            <asp:Label ID="lbltab" runat="server" Text="Add user"></asp:Label></a></li>
        <li><a href="#deleteuser" data-toggle="tab">
            <asp:Label ID="Label2" runat="server" Text="Delete user"></asp:Label></a></li>
        <li><a href="#addrole" data-toggle="tab">
            <asp:Label ID="Label3" runat="server" Text="Add role"></asp:Label></a></li>
        <li><a href="#deleterole" data-toggle="tab">
            <asp:Label ID="Label4" runat="server" Text="Delete role"></asp:Label></a></li>
        <li><a href="#adduserrole" data-toggle="tab">
            <asp:Label ID="Label5" runat="server" Text="Add user to role"></asp:Label></a></li>
        <li><a href="#deleteuserrole" data-toggle="tab">
            <asp:Label ID="Label6" runat="server" Text="Delete user from role"></asp:Label></a></li>
        <li><a href="#changepassword" data-toggle="tab">
            <asp:Label ID="Label7" runat="server" Text="Change password"></asp:Label></a></li>
    </ul>

    <!-- Tab panes -->
    <div class="tab-content">
        <br />
        <div class="tab-pane active" id="adduser">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <asp:Label ID="Label1" runat="server" Text="Add user"></asp:Label></h3>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label15" runat="server" Text="User Name"></asp:Label></label>
                        <asp:TextBox ID="UserName" class="form-control" runat="server" />
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label16" runat="server" Text="Password"></asp:Label></label>
                        <asp:TextBox ID="UserPass" class="form-control" TextMode="Password" runat="server" />
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label17" runat="server" Text="Password"></asp:Label></label>
                        <asp:TextBox ID="UserPassW" class="form-control" TextMode="Password" runat="server" />
                    </div>
                    <asp:Button ID="butUserNeu" class="btn btn-default" runat="server" Text="Add User" />

                </div>
            </div>
        </div>
        <div class="tab-pane" id="deleteuser">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <asp:Label ID="Label8" runat="server" Text="Delete user"></asp:Label></h3>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label18" runat="server" Text="User Name"></asp:Label></label>
                        <asp:DropDownList ID="cboUser" class="form-control" runat="server" />
                    </div>
                    <asp:Button ID="butDelUser" class="btn btn-default" runat="server" Text="Delete User" />
                </div>
            </div>
        </div>
        <div class="tab-pane" id="addrole">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <asp:Label ID="Label9" runat="server" Text="Add role"></asp:Label></h3>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label19" runat="server" Text="Add role"></asp:Label></label>
                        <asp:TextBox ID="texRolleNeu" runat="server" />
                    </div>
                    <asp:Button ID="butRolleNeu" runat="server" Text="anlegen" />

                </div>
            </div>
        </div>
        <div class="tab-pane" id="deleterole">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <asp:Label ID="Label12" runat="server" Text="Delete role"></asp:Label></h3>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label20" runat="server" Text="Delete role"></asp:Label></label>
                        <asp:DropDownList ID="cboRollen" runat="server" Width="99%" />
                    </div>
                    <asp:Button ID="delRolle" runat="server" Text="Delete role" />

                </div>
            </div>
        </div>
        <div class="tab-pane" id="adduserrole">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <asp:Label ID="Label11" runat="server" Text="Add user to role"></asp:Label></h3>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label10" runat="server" Text="User"></asp:Label></label>
                        <asp:DropDownList ID="cboUserRollenAuswahl" runat="server" />
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label21" runat="server" Text="Role"></asp:Label></label>
                        <asp:DropDownList ID="ddlRollen" runat="server" />
                    </div>
                    <asp:Button ID="butAddUserToRole" runat="server" Text="Add user to role" />

                </div>
            </div>
        </div>
        <div class="tab-pane" id="deleteuserrole">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <asp:Label ID="Label13" runat="server" Text="Delete user from role"></asp:Label></h3>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label22" runat="server" Text="User"></asp:Label></label>
                        <asp:DropDownList ID="cboUserRollenAuswahl1" runat="server" />
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label23" runat="server" Text="Role"></asp:Label></label>
                        <asp:DropDownList ID="ddlUserInRollen" runat="server" />
                    </div>
                    <asp:Button ID="butUserZuRollenDelete" runat="server" Text="Delete user from role" />

                </div>
            </div>
        </div>
        <div class="tab-pane" id="changepassword">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <asp:Label ID="Label14" runat="server" Text="Change password"></asp:Label></h3>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            <asp:Label ID="Label26" runat="server" Text="User"></asp:Label></label>
                        <asp:DropDownList ID="ddlUserPassword" runat="server" />
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">
                            <asp:Label ID="Label24" runat="server" Text="Old password"></asp:Label></label>
                        <asp:TextBox ID="txtOldPassword" TextMode="Password" runat="server" />
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">
                            <asp:Label ID="Label25" runat="server" Text="New password"></asp:Label></label>
                        <asp:TextBox ID="txtNewPassword" TextMode="Password" runat="server" />
                    </div>
                    <asp:Button ID="butChangePassword" class="btn btn-default" runat="server" Text="Change Password" />
                </div>
            </div>
        </div>
    </div>
     <div class="panel panel-danger">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <asp:Label ID="Label27" runat="server" Text="Messagebox"></asp:Label></h3>
                </div>
                <div class="panel-body">
 <asp:Label ID="Msg" runat="server" ForeColor="red" Visible="True" />
                </div>

     </div>
   
    <script type="text/javascript">
        $('#myTab a').click(function (e) {
            e.preventDefault()
            $(this).tab('show')
        })
    </script>

</asp:Content>
